/*-------------------------------------------------------------------------------
* file:     app_clk_adj.h
* brief:    application
* copyright Copyright (C) 2020-2022 @ NanoIC
* Date:     2022-08-15
* Version:  V1.00
* Author:   
*-------------------------------------------------------------------------------*/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __APP_CLK_ADJ_H__
#define __APP_CLK_ADJ_H__

/* Includes ------------------------------------------------------------------*/
#include "common.h"
#include "app_config.h"
#include "app_iic.h"
#include "app_lowpower.h"
#include "app_timer.h"
#include "app_uart.h"
#include "lpt.h"

/**
 * @brief : 上电初始化时钟校准函数
 */
void app_clk_adj_init(bool f_power_on);

/**
 * @brief : 系统内部时钟校准
 */
void app_sys_clk_calibration(uint32_t time_diff,uint32_t time_diff_dub);

/**
 * @brief : 系统内部RC调整
 */
void app_sys_rc_adjust(uint32_t time_diff);

#endif